package com.cloud.xxl;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class JobTest {

    @XxlJob("TestJob")
    public ReturnT<String> syncBalanceUnfreezeJob(String param) throws InterruptedException {
        while (true) {
            Thread.sleep(1000);
            System.out.println("1");
        }
    }

    @XxlJob("TestJob1")
    public ReturnT<String> syncBalanceUnfreezeJobTest(String param) throws InterruptedException {
        while (true) {
            Thread.sleep(1000);
            System.out.println("2");
        }
    }
}
